<?php


namespace app\Listeners;


use app\event\OrderPayEvent;
use app\provider\BaseHandler;

class OrderPayHandler extends BaseHandler
{
    const ORDER_PAY = 'event_order_pat';

    // TODO: Implement register() method.
    public function register()
    {
        \Yii::$app->on(self::ORDER_PAY, function (OrderPayEvent $event)
        {
            echo $event->order_sn .'被支付';
        });
    }
}